package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 企业物料库存对象 tbl_enterprise_material
 *
 * @author 协同
 * @date 2022-04-20
 */
public class EnterpriseMaterial extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 企业用户id
     */
    private Long eid;

    /**
     * 物料编码
     */
    private String code;

    /**
     * 物料名称
     */
    private String name;

    /**
     * 采购入库
     */
    private Integer purchaseNum;

    /**
     * 退料出库
     */
    private Integer returnNum;

    /**
     * 正常出库
     */
    private Integer normalNum;

    /**
     * 现有库存
     */
    private Integer existingNum;

    /**
     * 初始库存
     */
    private Integer initialNum;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setEid(Long eid) {
        this.eid = eid;
    }

    public Long getEid() {
        return eid;
    }

    public void setPurchaseNum(Integer purchaseNum) {
        this.purchaseNum = purchaseNum;
    }

    public Integer getPurchaseNum() {
        return purchaseNum;
    }

    public void setReturnNum(Integer returnNum) {
        this.returnNum = returnNum;
    }

    public Integer getReturnNum() {
        return returnNum;
    }

    public void setNormalNum(Integer normalNum) {
        this.normalNum = normalNum;
    }

    public Integer getNormalNum() {
        return normalNum;
    }

    public void setExistingNum(Integer existingNum) {
        this.existingNum = existingNum;
    }

    public Integer getExistingNum() {
        return existingNum;
    }

    public void setInitialNum(Integer initialNum) {
        this.initialNum = initialNum;
    }

    public Integer getInitialNum() {
        return initialNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("eid", getEid())
                .append("code", getCode())
                .append("name", getName())
                .append("purchaseNum", getPurchaseNum())
                .append("returnNum", getReturnNum())
                .append("normalNum", getNormalNum())
                .append("existingNum", getExistingNum())
                .append("initialNum", getInitialNum())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
